﻿@model QRCode.Models.Coupon

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

     <fieldset>
        <legend>Coupon</legend>

        <div class="editor-field">
            <H1>@ViewBag.SalesPromotionName</H1>
            <H2>@ViewBag.PromotionTypeName</H2>
        </div>

        <div class="editor-field">
            @Html.HiddenFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.SalesPromotionID)
        </div>


        @foreach (var c in ViewBag.SalesPromotionQuestions)
        {
           <H3>@c.Question1</H3> 
            
         <label class="radio">
            <input type="radio" name="q1" value="1" >@c.Answer11
        </label>
            <label class="radio">
            <input type="radio" name="q1" value="2" >@c.Answer21
        </label>
            <label class="radio">
            <input type="radio" name="q1" value="3" >@c.Answer31
        </label>
            <label class="radio">
            <input type="radio" name="q1" value="4" >@c.Answer41
        </label>
            
            <H3>@c.Question2</H3> 
            
         <label class="radio">
            <input type="radio" name="q2" value="1" >@c.Answer12
        </label>
            <label class="radio">
            <input type="radio" name="q2" value="2" >@c.Answer22
        </label>
            <label class="radio">
            <input type="radio" name="q2" value="3" >@c.Answer32
        </label>
            <label class="radio">
            <input type="radio" name="q2" value="4" >@c.Answer42
        </label>
            
           <H3>@c.Question3</H3> 
            
         <label class="radio">
            <input type="radio" name="q3" value="1" >@c.Answer13
        </label>
            <label class="radio">
            <input type="radio" name="q3" value="2" >@c.Answer23
        </label>
            <label class="radio">
            <input type="radio" name="q3" value="3" >@c.Answer33
        </label>
            <label class="radio">
            <input type="radio" name="q3" value="4" >@c.Answer43
        </label>
            
              <H3>@c.Question4</H3> 
            
         <label class="radio">
            <input type="radio" name="q4" value="1" >@c.Answer14
        </label>
            <label class="radio">
            <input type="radio" name="q4" value="2" >@c.Answer24
        </label>
            <label class="radio">
            <input type="radio" name="q4" value="3" >@c.Answer34
        </label>
            <label class="radio">
            <input type="radio" name="q4" value="4" >@c.Answer44
        </label>
            
        }
            
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
